package com.bems.pojo;

import java.sql.Timestamp;

/**
 * 
 * @author 陈磊
 *
 */
public class Bill extends POJO 
{
   private Float cost;
   private Float price;
   private Timestamp createtime;
   private Long supply_id;
   private Long type_id;
   private Long list_id;
   private Float quantity;
		public Float getCost() {
			return cost;
		}
		public void setCost(Float cost) {
			this.cost = cost;
		}
		public Float getPrice() {
			return price;
		}
		public void setPrice(Float price) {
			this.price = price;
		}
		public Timestamp getCreatetime() {
			return createtime;
		}
		public void setCreatetime(Timestamp createtime) {
			this.createtime = createtime;
		}
		public Long getSupply_id() {
			return supply_id;
		}
		public void setSupply_id(Long supply_id) {
			this.supply_id = supply_id;
		}
		public Long getType_id() {
			return type_id;
		}
		public void setType_id(Long type_id) {
			this.type_id = type_id;
		}
		public Long getList_id() {
			return list_id;
		}
		public void setList_id(Long list_id) {
			this.list_id = list_id;
		}
		 
		public Float getQuantity() {
			return quantity;
		}
		public void setQuantity(Float quantity) {
			this.quantity = quantity;
		}
		public Supply Supply() {
			if(getSupply_id()==null)
				return null;
			return new Supply().get(getSupply_id());
			
		}
		
		public List List() {
			if(getList_id()==null)
				return null;
			return new List().get(getList_id());
			
		}
		public Type Type() {
			if(getType_id()==null)
				return null;
			return new Type().get(getType_id());
			
		}
   		
}
